<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
    <title>日程记录与查询</title>
</head>

<body class="bg-gray-100 font-sans">
    <div class="container mx-auto p-8">
        <h1 class="text-3xl font-bold text-center text-gray-800 mb-8">日程记录与查询</h1>
        <div class="bg-white p-6 rounded-lg shadow-md">
            <div class="mb-4">
                <label for="date" class="block text-gray-700 text-sm font-bold mb-2">选择日期</label>
                <input type="date" id="date" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
            </div>
            <button id="queryButton" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
                <i class="fa-solid fa-magnifying-glass"></i> 查询日程
            </button>
        </div>
        <div class="bg-white p-6 rounded-lg shadow-md mt-8">
            <form id="scheduleForm">
                <div class="mb-4">
                    <label for="time" class="block text-gray-700 text-sm font-bold mb-2">时间</label>
                    <input type="time" id="time" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" required>
                </div>
                <div class="mb-4">
                    <label for="activity" class="block text-gray-700 text-sm font-bold mb-2">活动</label>
                    <input type="text" id="activity" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="请输入活动内容" required>
                </div>
                <button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
                    <i class="fa-solid fa-plus"></i> 添加日程
                </button>
            </form>
        </div>
        <div class="mt-8">
            <h2 class="text-2xl font-bold text-gray-800 mb-4">日程列表</h2>
            <ul id="scheduleList" class="divide-y divide-gray-200"></ul>
        </div>
    </div>
    <script src="script.js"></script>
</body>

</html>
